//函数体中const使用场景
#include<iostream>
#include<string.h>

using namespace std;

struct Student
{
	string name;
	int age;
	int score;
};

//值传递
void printfStudent(const Student *a)//为了防止函数体失误
{
	//a->age = 150;//const固定数值
	cout << " 姓名：" << a->name
		<< " 年龄：" << a->age
		<< " 成绩：" << a->score << endl;
}

int main()
{
	struct Student s = { "李四",17,99 };
	printfStudent(s);
	system("pause"); 
	return 0;
}
